package com.cinc.ebc.sd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.sd.entity.SdSalesOrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.sd.model.SdSalesBackDetailModel;
import com.cinc.ebc.sd.model.SdSalesOrderDetailModel;
import com.cinc.ebc.sd.model.SdSalesOrderDetailOutHandleModel;
import com.cinc.ebc.sd.model.SdSalesOrderDetailOutModel;
import com.cinc.ebc.sd.vo.SdSalesOrderDetailPage;

import java.util.List;

/**
 * @Description: 销售订单明细
 * @Author: jeecg-boot
 * @Date:   2022-09-25
 * @Version: V1.0
 */
public interface ISdSalesOrderDetailService extends IService<SdSalesOrderDetail> {

	public List<SdSalesOrderDetail> selectByMainId(String mainId);

    IPage<SdSalesOrderDetailOutModel> outPage(Page<SdSalesOrderDetailOutModel> page, SdSalesOrderDetailPage detailPage);

    List<SdSalesOrderDetailOutModel> outList(SdSalesOrderDetailPage detailPage);

    IPage<SdSalesBackDetailModel> backPage(Page<SdSalesBackDetailModel> page, SdSalesOrderDetailPage detailPage);

    void handleBack(List<SdSalesBackDetailModel> backDetailModelList) throws Exception;

    void handleOut(List<SdSalesOrderDetailOutHandleModel> outHandleModelList) throws Exception;

    IPage<SdSalesOrderDetailModel> detailPage(Page<SdSalesOrderDetailModel> page, SdSalesOrderDetailPage detailPage);
}
